{# The stage: a call, full screen (``chat_router``'s /stage). Her figure is the phone, on the chat's own socket, and draws what the call is doing (voice.js sets data-state). Until she shows something she is the middle of it; once a card is up (``data-showing``) she steps aside as a speaker tile, her name and the line she is saying, and the card takes the stage, one at a time: each card is a tab (stage.js), the strip below naming every one she drew, the one up underlined. The call saves into the conversation the chat had open: the thread stays the record. Needs: ``chat_surface.stage_context``. #} {% extends "base.html" %} {% from "components/macros/form.html" import button_classes %} {% from "components/macros/chat.html" import conversation_field %} {% from "components/macros/layout.html" import tab_bar %} {% from "partials/chat/_call.html" import call_bar, mic_states, phone, phone_states with context %} {% block title %}{{ assistant }}{% endblock %} {% block navbar %}{% endblock %} {% block page_body %}
{{ conversation_field(conversation_id) }}
{{ call_bar(attach=False, box="w-full max-w-md") }}
{% call phone("shrink-0 flex flex-col items-center gap-3 text-aegis-teal") %} {{ assistant }} {{ phone_states("w-6 h-6") }} {% endcall %}

{% call tab_bar("Cards", id="chat-stage-strip", attrs="hidden") %}{% endcall %}
{# A drawn card's place here, as the thread has its own (voice.js). #} {# A card's tab in the strip, named by its title (stage.js). #} {{ mic_states() }} {% endblock %}